<?php
class roleModel extends hopeCmsModel
{

	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
    {
        return '{role}';
    }

    public function primaryKey()
    {
        return 'rid';
    }

    public function getRoleName()
    {
        return $this->findsByAttribute('rid, role_name');
    }
}
?>